.class public Lnbisdk/ru;
.super Ljava/lang/Object;


# instance fields
.field private jB:Lnbisdk/jz;

.field private yE:Lnbisdk/ex;

.field private yF:Lnbisdk/rq;

.field private yG:Lnbisdk/fn;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(Lnbisdk/jz;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lnbisdk/ru;->jB:Lnbisdk/jz;

    new-instance v0, Lnbisdk/ex;

    invoke-direct {v0}, Lnbisdk/ex;-><init>()V

    iput-object v0, p0, Lnbisdk/ru;->yE:Lnbisdk/ex;

    new-instance v0, Lnbisdk/rq;

    invoke-direct {v0}, Lnbisdk/rq;-><init>()V

    iput-object v0, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    iget-object v0, p0, Lnbisdk/ru;->jB:Lnbisdk/jz;

    const-string v1, "obsecurity"

    invoke-virtual {v0, v1}, Lnbisdk/jz;->af(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lnbisdk/hr;

    invoke-direct {v0}, Lnbisdk/hr;-><init>()V

    iput-object v0, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lnbisdk/fn;

    invoke-direct {v0}, Lnbisdk/fn;-><init>()V

    iput-object v0, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    goto :goto_0
.end method

.method private a(Lnbisdk/fk;Z)V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, 0x0

    iget-object v0, p0, Lnbisdk/ru;->jB:Lnbisdk/jz;

    invoke-virtual {v0, p1}, Lnbisdk/jz;->k(Lnbisdk/fk;)Lnbisdk/pe;

    move-result-object v1

    if-nez v1, :cond_0

    new-instance v0, Lnbisdk/m;

    invoke-direct {v0, p1}, Lnbisdk/m;-><init>(Lnbisdk/fk;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lnbisdk/ru;->yE:Lnbisdk/ex;

    invoke-virtual {p1}, Lnbisdk/fk;->ae()Ljava/util/Enumeration;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-nez v2, :cond_1

    move v2, v5

    :goto_0
    invoke-virtual {v0, p2, v2}, Lnbisdk/ex;->e(ZZ)V

    iget-object v0, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    invoke-virtual {v0, v1}, Lnbisdk/rq;->a(Lnbisdk/pe;)V

    iget-object v0, v1, Lnbisdk/pe;->uW:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1, v0}, Lnbisdk/fk;->e(Ljava/lang/String;)[B

    move-result-object v0

    if-nez v0, :cond_2

    new-instance v0, Lnbisdk/m;

    invoke-direct {v0, v1}, Lnbisdk/m;-><init>(Lnbisdk/pe;)V

    throw v0

    :cond_1
    move v2, v4

    goto :goto_0

    :cond_2
    iget-object v3, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    invoke-virtual {v3, v0}, Lnbisdk/fn;->h([B)V

    goto :goto_1

    :cond_3
    invoke-virtual {p1}, Lnbisdk/fk;->ae()Ljava/util/Enumeration;

    move-result-object v1

    :goto_2
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/fk;

    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-nez v2, :cond_4

    move v2, v5

    :goto_3
    invoke-direct {p0, v0, v2}, Lnbisdk/ru;->a(Lnbisdk/fk;Z)V

    goto :goto_2

    :cond_4
    move v2, v4

    goto :goto_3

    :cond_5
    return-void
.end method

.method public static j(Ljava/util/Vector;)V
    .locals 2

    new-instance v0, Lnbisdk/p;

    invoke-direct {v0}, Lnbisdk/p;-><init>()V

    new-instance v1, Lnbisdk/qg;

    invoke-direct {v1, p0}, Lnbisdk/qg;-><init>(Ljava/util/Vector;)V

    invoke-static {v1, v0}, Lnbisdk/sn;->a(Lnbisdk/qg;Lnbisdk/jt;)V

    return-void
.end method


# virtual methods
.method public final close()V
    .locals 1

    iget-object v0, p0, Lnbisdk/ru;->yE:Lnbisdk/ex;

    invoke-virtual {v0}, Lnbisdk/ex;->close()V

    iget-object v0, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    invoke-virtual {v0}, Lnbisdk/rq;->close()V

    iget-object v0, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    invoke-virtual {v0}, Lnbisdk/fn;->close()V

    return-void
.end method

.method public final e([BI)V
    .locals 3

    new-instance v0, Lnbisdk/kx;

    invoke-direct {v0, p1, p2}, Lnbisdk/kx;-><init>([BI)V

    array-length v1, p1

    sub-int/2addr v1, p2

    invoke-virtual {p0}, Lnbisdk/ru;->kU()I

    move-result v2

    if-ge v1, v2, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "array too short"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v1, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    iget-wide v1, v1, Lnbisdk/rq;->yx:J

    invoke-static {v1, v2}, Lnbisdk/pc;->j(J)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/kx;->m([B)V

    iget-object v1, p0, Lnbisdk/ru;->yE:Lnbisdk/ex;

    invoke-virtual {v1}, Lnbisdk/ex;->gz()Ljava/io/ByteArrayOutputStream;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/kx;->a(Ljava/io/ByteArrayOutputStream;)V

    iget-object v1, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    invoke-virtual {v1}, Lnbisdk/rq;->gz()Ljava/io/ByteArrayOutputStream;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/kx;->a(Ljava/io/ByteArrayOutputStream;)V

    iget-object v1, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    invoke-virtual {v1}, Lnbisdk/fn;->gz()Ljava/io/ByteArrayOutputStream;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/kx;->a(Ljava/io/ByteArrayOutputStream;)V

    return-void
.end method

.method public final kU()I
    .locals 4

    iget-object v0, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    iget-wide v0, v0, Lnbisdk/rq;->yx:J

    const-wide/16 v2, 0x7f

    cmp-long v0, v0, v2

    if-gtz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    iget-object v1, p0, Lnbisdk/ru;->yE:Lnbisdk/ex;

    invoke-virtual {v1}, Lnbisdk/ex;->gA()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    invoke-virtual {v1}, Lnbisdk/rq;->gA()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/ru;->yG:Lnbisdk/fn;

    invoke-virtual {v1}, Lnbisdk/fn;->gA()I

    move-result v1

    add-int/2addr v0, v1

    return v0

    :cond_0
    iget-object v0, p0, Lnbisdk/ru;->yF:Lnbisdk/rq;

    iget-wide v0, v0, Lnbisdk/rq;->yx:J

    invoke-static {v0, v1}, Lnbisdk/pc;->j(J)[B

    move-result-object v0

    array-length v0, v0

    goto :goto_0
.end method

.method public final v(Lnbisdk/fk;)V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lnbisdk/ru;->a(Lnbisdk/fk;Z)V

    return-void
.end method
